package cn.itsource.ymcc.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zongchangjiang
 * @since 2023-04-10
 */
@TableName("t_course_order_item")
@Data
public class CourseOrderItem extends Model<CourseOrderItem> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 对应订单ID
     */
    private Long orderId;

    /**
     * 小计金额
     */
    private BigDecimal amount;

    /**
     * 课程价格
     */
    private BigDecimal price;

    /**
     * 课程的数量
     */
    private Integer count;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 课程名字
     */
    private String courseName;

    /**
     * 封面
     */
    private String coursePic;

    private String orderNo;

    /**
     * 秒杀课程ID
     */
    private Long killCourseId;
}
